package com.wise.summer.v1.cms.content.listproduct;

import com.wise.entities.content.Product;
import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.AssertEnum;
import com.wise.framework.restful.PageParamGitHub;
import com.wise.framework.restful.PageResultList;
import com.wise.model.content.enums.ProductState;
import lombok.Getter;
import lombok.Setter;

import static com.wise.model.content.ContentErrMsgs.Err_001000250001;

/**
 * @author shaoming
 * @date 2019-09-11
 */
@Getter
@Setter
@Publish
@ApiInfo("查询产品列表")
public class PageListProduct extends PageParamGitHub<PageResultList<Product>> {

	@ApiInfo("产品名")
	private String name;

	@ApiInfo("产品类别Id")
	private String categoryId;

	@ApiInfo("发布状态")
	@AssertEnum(enumClass = ProductState.class, msg = Err_001000250001)
	private Integer state;

	/**
	 * 0 Product菜单
	 * 1 行业
	 */
	@ApiInfo("分类类型")
	private Integer categoryType;
}
